package com.fenxiangtech.mall.dao;

import com.fenxiangtech.mall.model.Image;
import com.fenxiangtech.mall.model.qc.ImageQC;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface ImageDAO{

    int insertImage(Image image);

    int updateImage(Image image);

    List<Image> listImage(ImageQC image);

    Long countImage(ImageQC image);

    int insertBatch(@Param("list") List<Image> images);

    int deleteImageById(Long id);

}